﻿using Microsoft.Xna.Framework;
using RaptorEngine;

namespace OilRigSumoWrestlers.Controllables.Controllers
{
    class NetworkOpponentControllable : PlayerControllable
    {
        public bool Pushed;
        public Vector2 LastMove;

        public NetworkOpponentControllable(Entity entity) : base(entity)
        {
            Pushed = false;
            LastMove = new Vector2(0, 0);
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (Pushed)
            {
                Push(gameTime);
                Pushed = false;
            }

            Move(LastMove, gameTime);
        }
    }
}
